import React, { PureComponent } from 'react';
import { Table } from 'antd';
import styles from './index.less';


class Product extends PureComponent {

  render() {
    const { data, loading, columns } = this.props;

    return (
      <div className={styles.standardTable}>
        <Table
          loading={loading}
          rowKey={record => record.id}
          dataSource={data}
          columns={columns}
        />
      </div>
    );
  }
}

export default Product;
